package com.ylb.rent.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 import com.ylb.rent.dao.ApartmentFeetypeMapper;
import  com.ylb.rent.entity.ApartmentFeetype;
import com.ylb.rent.service.IApartmentFeetypeService;

/**
 * 公寓费用Service业务层处理
 * 
 * @author ylb
 * @date 2023-06-29
 */
@Service
public class ApartmentFeetypeServiceImpl implements IApartmentFeetypeService 
{
    @Autowired
    private ApartmentFeetypeMapper apartmentFeetypeMapper;

    /**
     * 查询公寓费用
     * 
     * @param id 公寓费用主键
     * @return 公寓费用
     */
    @Override
    public ApartmentFeetype selectApartmentFeetypeById(Long id)
    {
        return apartmentFeetypeMapper.selectApartmentFeetypeById(id);
    }

    /**
     * 查询公寓费用列表
     * 
     * @param apartmentFeetype 公寓费用
     * @return 公寓费用
     */
    @Override
    public List<ApartmentFeetype> selectApartmentFeetypeList(ApartmentFeetype apartmentFeetype)
    {
        return apartmentFeetypeMapper.selectApartmentFeetypeList(apartmentFeetype);
    }

    /**
     * 新增公寓费用
     * 
     * @param apartmentFeetype 公寓费用
     * @return 结果
     */
    @Override
    public int insertApartmentFeetype(ApartmentFeetype apartmentFeetype)
    {
        return apartmentFeetypeMapper.insertApartmentFeetype(apartmentFeetype);
    }

    /**
     * 修改公寓费用
     * 
     * @param apartmentFeetype 公寓费用
     * @return 结果
     */
    @Override
    public int updateApartmentFeetype(ApartmentFeetype apartmentFeetype)
    {
        return apartmentFeetypeMapper.updateApartmentFeetype(apartmentFeetype);
    }

    /**
     * 批量删除公寓费用
     * 
     * @param ids 需要删除的公寓费用主键
     * @return 结果
     */
    @Override
    public int deleteApartmentFeetypeByIds(Long[] ids)
    {
        return apartmentFeetypeMapper.deleteApartmentFeetypeByIds(ids);
    }

    /**
     * 删除公寓费用信息
     * 
     * @param id 公寓费用主键
     * @return 结果
     */
    @Override
    public int deleteApartmentFeetypeById(Long id)
    {
        return apartmentFeetypeMapper.deleteApartmentFeetypeById(id);
    }
}
